package com.dafasoft.jnicallbacktest;

import android.content.Context;
import android.util.Log;

public class JniTester {
    private long nativeJniTester;



    public JniTester() {

    }

    public void requestData() {
        this.requestResult();
    }

    private native void requestResult();

    public void onResult(int result) {
        if (this.callback != null) {
            callback.onResult(result);
        }
    }

    private OnResultCallback callback;

    public void setOnResultCallback(OnResultCallback callback) {
        this.callback = callback;
    }

    public interface OnResultCallback {
        void onResult(int result);
    }
}
